package engine.gui;

import engine.game.Manager;
import engine.graphics.Vertex2f;
import engine.objects.TexturedObject;

public class GameMenuScreenBorder extends Border {

	private static final long serialVersionUID = 1L;
	
	private static final Vertex2f imgSize = new Vertex2f(12,12); 

	public GameMenuScreenBorder(Manager m, ParentObject parent) {
		super(m, parent);
		init(); 
	}
	
	public void init(){
		super.init(); 
		TexturedObject.addNewAnimationToObject(this.getUpperLeftTile(), "upperLeftTile", "gui",
				new Vertex2f[]{imgSize}, new Vertex2f[]{new Vertex2f(0,33)},0); 
		TexturedObject.addNewAnimationToObject(this.getUpperRightTile(), "upperRightTile", "gui",
				new Vertex2f[]{imgSize}, new Vertex2f[]{new Vertex2f(12,30)},0); 
		TexturedObject.addNewAnimationToObject(this.getLowerRightTile(), "lowerRightTile", "gui",
				new Vertex2f[]{imgSize}, new Vertex2f[]{new Vertex2f(24,30)},0); 
		TexturedObject.addNewAnimationToObject(this.getLowerLeftTile(), "lowerLeftTile", "gui",
				new Vertex2f[]{imgSize}, new Vertex2f[]{new Vertex2f(36,30)},0); 
		this.getLeftTile().subdivide(12, 12, "leftTile", "gui", 
				new Vertex2f[]{new Vertex2f(0, 45)});
		this.getUpperTile().subdivide(12, 12, "upperTile", "gui", 
				new Vertex2f[]{new Vertex2f(12, 45)});
		this.getRightTile().subdivide(12, 12, "rightTile", "gui", 
				new Vertex2f[]{new Vertex2f(24, 45)});
		this.getLowerTile().subdivide(12, 12, "lowerTile", "gui", 
				new Vertex2f[]{new Vertex2f(36, 45)});
	}

}
